﻿Imports Crystal.CLL

Public Class Help
    Inherits BaseForm

#Region "Events"

#Region "Form Events"
    Private Sub Help_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        SetControlProperties()
    End Sub

    Private Sub Help_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
        Me.Dispose()
    End Sub
#End Region

#Region "Button Events"
    Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.Click
        Me.Close()
    End Sub
#End Region

#End Region

#Region "Procedures"
    ''' <summary>
    ''' Set the controls' properties to show the help content.
    ''' </summary>
    ''' <remarks></remarks>
    Private Sub SetControlProperties()
        Me.Text = TitleManager.GetTitle("Help")
        Me.BackColor = Color.White
        pnlHelp.Appearance.BackColor = Color.FromArgb(246, 214, 115)
        btnClose.BackColor = Color.FromArgb(246, 214, 115)

        'lblRemoveInvMapping.Appearance.BackColor = Color.Yellow
        lblRemoveInvMapping.Text = MessageManager.GetMessage(DBResult.EDS_REMOVE_INV_MAPPING.ToString)
        lblRemoveFundMapping.Text = MessageManager.GetMessage(DBResult.EDS_REMOVE_FUND_MAPPING.ToString)
        lblApplyInvMapping.Text = MessageManager.GetMessage(DBResult.EDS_APPLY_INV_MAPPING.ToString)
        lblApplyFundMapping.Text = MessageManager.GetMessage(DBResult.EDS_APPLY_FUND_MAPPING.ToString)
        lblApplyInvFundMapping.Text = MessageManager.GetMessage(DBResult.EDS_APPLY_INVFUND_MAPPING.ToString)
        lblMarkDoubt.Text = MessageManager.GetMessage(DBResult.EDS_MARK_DOUBT_1.ToString) + " " + MessageManager.GetMessage(DBResult.EDS_MARK_DOUBT_2.ToString)
        lblCopyContent.Text = MessageManager.GetMessage(DBResult.EDS_COPY_CONTENT.ToString)
        lblORSearch.Text = MessageManager.GetMessage(DBResult.EDS_OR_SEARCH.ToString)
        lblANDSearch.Text = MessageManager.GetMessage(DBResult.EDS_AND_SEARCH.ToString)
        lblMarkCustodian.Text = MessageManager.GetMessage(DBResult.EDS_MARK_CUSTODIAN.ToString)
    End Sub
#End Region

End Class